package com.example.uniappbackend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan(basePackages = "com.example.uniappbackend.dao")
@RestController
public class UniappBackendApplication {

    public static void main(String[] args) {
        SpringApplication.run(UniappBackendApplication.class, args);
    }

    @RequestMapping
    public String index(){
        return "uniapp backend has started";
    }

}
